import { Component, OnInit } from '@angular/core';
import { ActivatedRoute } from '@angular/router'
import { CommonService } from '../../service/common.service'
import { StorageService } from '../../service/storage.service'
import { EventService } from '../../service/event.service'

@Component({
  selector: 'app-success',
  templateUrl: './success.page.html',
  styleUrls: ['./success.page.scss'],
})
export class SuccessPage implements OnInit {

  constructor(private activatedRoute: ActivatedRoute,private common:CommonService,private storage:StorageService,private eventService:EventService) { }
  public title:string='';
  public coin:any;
  public url:string= '';
  public other:string

  ngOnInit() {
    this.activatedRoute.queryParams.subscribe(queryParam => {
      this.title = queryParam.title;
      this.coin = queryParam.coin;
      this.url = queryParam.url;
      this.other = queryParam.other
    })

    // this.getInfo()
  }

  // 传入id获取用户基本信息
  // getInfo(){
  // }



}
